/**
 * 
 */
package com.zxc.redis;

/**
 * @author Administrator
 *
 */
public class AnyObject implements Comparable<AnyObject> {

	private int num;

	public AnyObject(){
		
	}
	
	public AnyObject(int num) {
		this.num = num;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	@Override
	public String toString() {
		return "AnyObject [num=" + num + "]";
	}

	@Override
	public int compareTo(AnyObject o) {
		if(this.getNum() > o.getNum()){
			return 1;
		}else if(this.getNum() == o.getNum()){
			return 0;
		}else{
			return -1;
		}
		
	}
	
}
